<?php

class Form_ManagerForm extends App_Form
{
    public function __construct($options = null)
    {
        parent::__construct($options);

        // change the class on the outer <dl> tag
        $this->getDecorator('HtmlTag')->setOption('class', 'form');

        $this->setName('managerForm');
                
        $client_id = $this->hiddenElement('manager_client_id');
        $this->addElement($client_id);
        
        $email = $this->textElement('account_email', 'Account Email:');
        $email->setAttrib('disabled',true);
        $this->addElement($email);

        $model_service = new Model_Service();
    	$all_services = $model_service->getAllService();
                
        $departments=array();
        foreach($all_services as $key =>$item){
	    	$check_box = new App_Form_Element_Checkbox('dpt_id_'.$item['dpt_id']);
	    	$check_box->setLabel($item['dpt_name']);
	    	$check_box->setAttrib('checked',false);
	    	$check_box->setValue($item['dpt_id']);
			$check_box->addDecorators(array( array( array("wrapper"=>'HtmlTag'), array('tag' => 'div','class' =>'left-column'))));
	    	$this->addElement($check_box);
        }        		        
        
        $submit = $this->submit('submit', 'Submit');
        $this->addElement($submit);
    }

    public function isValid($data)
    {
        
        return true;
    }

}
